import request from '@/utils/request'

// 查询站点维护列表
export function listMarketplace(query) {
  return request({
    url: '/amz/marketplace/list',
    method: 'get',
    params: query
  })
}

// 查询站点维护详细
export function getMarketplace(id) {
  return request({
    url: '/amz/marketplace/' + id,
    method: 'get'
  })
}

// 新增站点维护
export function addMarketplace(data) {
  return request({
    url: '/amz/marketplace',
    method: 'post',
    data: data
  })
}

// 修改站点维护
export function updateMarketplace(data) {
  return request({
    url: '/amz/marketplace',
    method: 'put',
    data: data
  })
}

// 删除站点维护
export function delMarketplace(id) {
  return request({
    url: '/amz/marketplace/' + id,
    method: 'delete'
  })
}

// 删除站点维护
export function syncCurrencyRate() {
  return request({
    url: '/amz/marketplace/syncCurrencyRate',
    method: 'get'
  })
}

// 导出站点维护
export function exportMarketplace(query) {
  return request({
    url: '/amz/marketplace/export',
    method: 'get',
    params: query
  })
}
